import {PlayerUiState} from "db://assets/Scripts/MVC/Player/PlayerUiState";

/**
 * 玩家ViewModel
 */
export class PlayerViewModel {
    /**
     * 玩家UiState
     */
    public uiState: PlayerUiState = new PlayerUiState();

    /**
     * 判断玩家是否存活
     */
    public isLive(): boolean {
        return this.uiState.hp > 0;
    }
}